package iPersistence.test.dao;

import iPersistence.test.pojo.User;

import java.util.List;

/**
 * @author Feuler
 */
public interface UserDao {
    /**
     * 查询所有用户
     *
     * @return
     * @throws Exception
     */
    List<User> findAll() throws Exception;

    /**
     * 根据条件查询单个用户
     *
     * @param user
     * @return
     * @throws Exception
     */
    User findByCondition(User user) throws Exception;
}
